[@main]
#IF
equal p9 0
#ACT
goto @main-1
BreakTimeRecall 
break

#IF
equal p9 1
#ACT
goto @cube
BreakTimeRecall 
break

#IF
equal p9 9
#ACT
goto @quit
BreakTimeRecall 
break

[@main-1]
#IF
#ACT
mov p9 0
#SAY
Welcome to room 8 <$USERNAME> \
Here, you can role a dice, but there is added fun!!\
Oh yes..you see.. If you role more than 3, you can move 6 rooms forward\
Any othet number and you will move forward that number of rooms\
OK?\\
<Sure/@next>

[@next]
#IF
checkitem gamblechip 1
#ACT
take gamblechip 1
mov p9 1
movr d0 6
inc d0 1
playdice 1 @cube
#SAY
Continue\ \
<Ok/@cube>
#ELSESAY
<$USERNAME>, You haven't any Chips!!\
Go get some if you want to gamble\\
<Silly Me/@Quit>
#ELSEACT
mov p9 9

[@cube]
#IF
large d0 3
#SAY
You roled a <$STR(D0)> \
this number is over 4, and you will move 6 rooms forward\\
<Sweet/@move>
#ELSESAY
You roled a <$STR(D0)> \
You will move <$STR(D0)> rooms forward\\
<Ok/@next_cube>

[@next_cube]
#IF
equal d0 1 
#ACT
batchDelay 1
addbatch B109
batchmove
break

#IF
equal d0 2 
#ACT
batchDelay 1
addbatch B109
addbatch B110
batchmove
break

#IF
equal d0 3 
#ACT
batchDelay 1
addbatch B109
addbatch B110
addbatch B111
batchmove
break

[@Quit]
#IF
#ACT
map B011

[@move]
#IF
#ACT
batchDelay 1
addbatch B109
addbatch B110
addbatch B111
addbatch B112
addbatch B113
addbatch B114
batchmove


